package tec.stan.ling.topo.graph.editpart;

import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.editparts.AbstractGraphicalEditPart;

import tec.stan.ling.core.top.model.Node;
import tec.stan.ling.topo.graph.figure.NodeFigure;

/**
 * 
 * 
 * @author Stan 张新潮
 * @since 2009-12-31
 */
public class SubnetEditPart extends AbstractGraphicalEditPart {

	@Override
	protected IFigure createFigure() {
//		Node node = (Node) getModel();
//		IFigure figure = new NodeFigure(node);
//		figure.setBounds(new Rectangle(node.getX(), node.getY(), figure
//				.getBounds().width, figure.getBounds().height));
//		return figure;
		return new NodeFigure((Node)getModel());
	}

	@Override
	protected void createEditPolicies() {
	}
}
